package Sort.sort;


//ð�����������
public class BubbleSort1 {

	public static void main(String[] args) {
		int[] array={3,8,4,6,7,2,5,9,1};
		bubbleSort1(array);
		for(int i=0;i<array.length;i++){
			System.out.print(array[i]);
		}
	}
	public static void bubbleSort1(int[] array){
		if(array==null||array.length==0){
			return;
		}
		for(int i=0;i<array.length-1;i++){
			for(int j=i+1;j<array.length;j++){
				if(array[i]>array[j]){
					int temp =array[i];
					array[i] = array[j];
					array[j] = temp;
					
				}
			}
		}
	}

}
